﻿--[[
   @brief    descprtion
   @author   vincentlao
   @version  1.0
   @date     2015-06-10
--]]

talk_dialog_desc = 
{
    module_name = "talk_dialog",
    events = 
    {
        {
            c_event = 
            {
                {
                    id  = ierd_tgp.login_mgr.LOGIN_ON_TGP_ST_RENEWED,
                    callback = "talk_dialog_control.on_tgp_st_renewed"
                },
                {
                    id = ierd_tgp.tpf_ui.TPF_UI_APP_EXIT,
                    callback = "talk_dialog_control.save_unread_pk_result_to_history_file"
                },
                {
                    id  = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_SENDMSGTO_GROUP,
                    callback = "talk_dialog_control.on_send_msg_to_group"
                },
                {
                    id  = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_MODIFY_GROUP_NOTIFY,
                    callback = "talk_dialog_control.on_modify_group_notify"
                },
                {
                    id  = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_QUIT_GROUP,
                    callback = "talk_dialog_control.on_quit_group"
                },
                {
                    id  = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_DELETE_GROUP,
                    callback = "talk_dialog_control.on_delete_group"
                } ,
                {
                    id  = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_DELETE_FRIEND,
                    callback = "talk_dialog_control.on_delete_friend"
                } ,
                {
                    id  = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_GET_GROUP_UNREAD_MESSAGE,
                    callback = "talk_dialog_control.on_get_group_unread_message"
                },
                {
                    id  = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_GET_FRIEND_UNREAD_MESSAGE,
                    callback = "talk_dialog_control.on_get_friend_unread_message"
                },
                {
                    id  = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_SENDMSGTO_FRIEND,
                    callback = "talk_dialog_control.on_send_msg_to_friend"
                },
                {
                    id  = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_GET_GROUP_MEMBER_LIST,
                    callback = "talk_dialog_control.on_get_group_member"
                },
                {
                    id  = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_GET_FRIEND_DETAIL,
                    callback = "talk_dialog_control.on_get_user_list_info"
                },  
                {
                    id  = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_OPEN_LOL_CHATROOM,
                    callback = "talk_dialog_control.on_open_lol_room"
                },
                {
                    id  = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_UPDATE_LOL_CHATROOM,
                    callback = "talk_dialog_control.on_update_lol_room"
                },  
                {
                    id  = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_GET_GAME_LIST,
                    callback = "talk_dialog_control.on_get_game_list"
                },   
                {
                    id  = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_JOIN_LOL_CHATROOM,
                    callback = "talk_dialog_control.on_join_lol_chatroom"
                },  
                {
                    id  = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_FOREGROUP_WINDOW_CHANGED,
                    callback = "talk_dialog_control.on_foreground_window_changed"
                },   
                {
                    id  = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_RECEIVE_GROUP_REPORT,
                    callback = "talk_dialog_control.on_recv_group_report"
                },          
                {
                    id  = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_OPEN_BROWSE_IMG,
                    callback = "talk_dialog_control.on_open_browse_img"
                },   
                {
                    id  = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_PIC_UPLOAD_RESULT,
                    callback = "talk_dialog_control.on_pic_upload_result"
                },    
                {
                    id  = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_SET_CLIPBOARD_RESULT,
                    callback = "talk_dialog_control.on_set_clipboard_text_result"
                },    
                {
                    id  = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_RECVIE_FRIEND_REPORT,
                    callback = "talk_dialog_control.on_recv_friend_report"
                },       
                {
                    id = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_GET_GROUP_HISTORY_MESSAGE,
                    callback = "talk_dialog_control.req_history_group_msg_rsp"
                },          
                {
                    id = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_GET_FRIEND_HISTORY_MESSAGE,
                    callback = "talk_dialog_control.req_history_friend_msg_rsp"
                },                 
            },
            lua_event = 
            {
                {
                    id = group_event.SHOW_TALK_DIALOG,
                    callback = "talk_dialog_control.show"
                },
                {
                    id = group_event.GROUP_NEW_MESSAGE_COME,
                    callback = "talk_dialog_control.on_new_group_message_come"
                },
                {
                    id = group_event.FRIEND_NEW_MESSAGE_COME,
                    callback = "talk_dialog_control.on_new_friend_message_come"
                },
                {
                    id = group_event.GROUP_INFO_UPDATED,
                    callback = "talk_dialog_control.on_group_info_updated"
                }, 
                {
                    id = group_event.TGP_CLOSE,
                    callback = "talk_dialog_control.on_dialog_close_exit_tgp"
                },   
                {
                    id = social_event.LOL_GAME_USER_STATUS_EXCEPTION,
                    callback = "talk_dialog_control.handle_lol_user_status_exception"
                },  
            },
            lua_file = "social\\talk_dialog\\control.lua"
        },
        {
            reg_service = 
            {
                
                {
                    id = 'i_service_social_get_history_message',
                    callback = "talk_dialog_control.get_history_message"
                },
            },
            listen_broadcast =
            {
                {
                    id = "i_broadcast_social_info_center_on_lol_player_status_changed",
                    callback = "talk_dialog_control.on_lol_event_data_changed"
                },
                {
                    id = "i_broadcast_social_info_center_update_lol_game_status",
                    callback = "talk_dialog_control.update_lol_game_status_response"
                },
            },
            lua_file = "social\\talk_dialog\\control.lua"
        },
        {
            lua_event = 
            {
            },
            c_event = 
            {
                {
                    id  = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_GET_GROUP_LIST,
                    callback = "live_room_control.get_group_list_done"
                },
                {
                    id  = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_ADD_GROUP_INVITED,
                    callback = "live_room_control.on_add_group_invited"
                },  
                {
                    id = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_IM_INITED,
                    callback = "live_room_control.on_im_inited"
                },
                {
                    id  = ierd_tgp.social_network.SOCIAL_NETWORK_EVENT_GET_GROUP_INFO,
                    callback = "live_room_control.on_get_group_info"
                },
            },
            listen_broadcast = 
            {
                {
                    id = 'i_broadcast_im_app_on_get_cur_live_room_info',
                    callback = "live_room_control.on_get_cur_live_room_info"
                },
                {
                    id = 'i_broadcast_im_app_on_join_cur_live_room',
                    callback = "live_room_control.on_join_cur_live_room"
                },
                {
                    id = 'i_broadcast_im_app_on_exit_live_room',
                    callback = 'live_room_control.on_exit_live_room'
                },
                {
                    id = 'i_broadcast_im_app_on_get_live_room_cfg',
                    callback = 'live_room_control.on_get_live_room_cfg'
                },
                {
                    id = 'i_social_broadcast_contact_btn_signaled',
                    callback = 'live_room_control.on_contact_btn_signaled'
                },
                {
                    id = 'i_social_broadcast_contact_btn_unsignaled',
                    callback = 'live_room_control.on_contact_btn_unsignaled'
                },
                {
                    id = 'i_social_broadcast_session_btn_signaled',
                    callback = 'live_room_control.on_session_btn_signaled'
                },
                {
                    id = 'i_social_broadcast_session_btn_unsignaled',
                    callback = 'live_room_control.on_session_btn_unsignaled'
                }, 
                {
                    id = 'i_broadcast_im_app_get_cur_game_room',
                    callback = 'live_room_control.on_get_cur_game_room'
                }, 
                {
                    id  = "i_broadcast_query_user_ungoted_msg",
                    callback = "live_room_control.on_broadcast_query_user_ungoted_msg"
                },
            },
            reg_service = 
            {
                {
                    id = 'i_service_social_open_live_room_talk',
                    callback = "live_room_control.open_live_room_talk"
                },
                {
                    id = 'i_service_social_exit_live_room_group',
                    callback = 'live_room_control.exit_live_room_group'
                },
                {
                    id = 'i_service_social_get_new_live_room_cnt',
                    callback = 'live_room_control.get_new_live_room_cnt'
                },
                {
                    id = 'i_service_social_need_show_tips_on_web_title',
                    callback = 'live_room_control.need_show_tips_on_web_title'
                },
                {
                    id = 'i_service_social_get_unread_live_msg_count',
                    callback = 'live_room_control.get_unread_live_msg_count'
                },
                {
                    id = 'i_service_social_open_common_room_talk',
                    callback = 'live_room_control.open_common_room_talk'
                },
            },
            lua_file = "social\\talk_dialog\\live_room_control.lua"            
        },
    }
}

desc_mgr.add(talk_dialog_desc)